// constSpring.h: interface for the ConstSpring class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_CONSTSPRING_H__32A85D32_AF46_496A_9AFB_72E876C41327__INCLUDED_)
#define AFX_CONSTSPRING_H__32A85D32_AF46_496A_9AFB_72E876C41327__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class AFX_EXT_CLASS ConstSpring  
{
public:
	ConstSpring();
	virtual ~ConstSpring();

public:
	BOOL IsLegal(DOUBLE dbDisplacement);

public:
	void Capacity(DOUBLE dbCapacity){
		m_dbCapacity = dbCapacity;
	}

	DOUBLE Capacity(){
		return m_dbCapacity;
	}

	void MinDis(DOUBLE dbDis){
		m_dbDisMin = dbDis;
	}

	DOUBLE MinDis(){
		return m_dbDisMin;
	}

	void MidDis(DOUBLE dbDis){
		m_dbDisMid = dbDis;
	}

	DOUBLE MidDis(){
		return m_dbDisMid;
	}

	void MaxDis(DOUBLE dbDis){
		m_dbDisMax = dbDis;
	}

	DOUBLE MaxDis(){
		return m_dbDisMax;
	}

	void DH(INT nDH){
		m_nDH = nDH;
	}

	INT DH(){
		return m_nDH;
	}

	void CustomID(const CString& strID){
		m_strCustomID = strID;
	}

	const CString& CustomID(){
		return m_strCustomID;
	}

	void ManuFactory(const CString& strFactory){
		m_strManuFactory = strFactory;
	}

	const CString& ManuFactory(){
		return m_strManuFactory;
	}

private:
	DOUBLE m_dbCapacity;
	DOUBLE m_dbDisMin;
	DOUBLE m_dbDisMax;
	DOUBLE m_dbDisMid;
	INT m_nDH;
	CString m_strCustomID;
	CString m_strManuFactory;
};

#endif // !defined(AFX_CONSTSPRING_H__32A85D32_AF46_496A_9AFB_72E876C41327__INCLUDED_)
